Learn R Programming

paleoTS (version 0.3-1)

Stickleback data: Stickleback data from Bell et al. (2006)

Description

Data of pelvic score data from a fossil stickleback lineage.

Usage

data(dorsal.spines)

Arguments

format

a paleoTS object for the time-series of pelvic scores

source

Bell, M.A., M.P. Travis and D.M. Blouw 2006. Inferring natural selection in a fossil threespine stickleback. Paleobiology 32:562-577.

Details

These data are already in the form of a paleoTS object, with sample means (mm), variances (vv) sample sizes (nn), and ages in Kyr (tt).

Examples

Run this code
data(pelvic.score)

# get subset of samples from invading lineage (tt>=4.5 Kyr), only those with nn>=5
ok<- pelvic.score$tt >= 4.5 & pelvic.score$nn >=5
ps2<- sub.paleoTS(pelvic.score, ok=ok)

# convert time scale to generations (500 gen per Kyr)
ps2$tt<- ps2$tt*(1000/2)	
plot(ps2, pool=TRUE)

Run the code above in your browser using DataLab